(function(angular){
	'use strict';
	angular.module('fs.waf').controller('lfe.lfeRequest.viewController',viewController);
	viewController.$inject = ['$scope', 'Constants', 'layoutConfig', 'validatorConfig', 'gridService', 'authService', 'lfeRequestService'];
	function viewController ($scope, Constants, layoutConfig, validatorConfig, gridService, authService, lfeRequestService){
		var ctrl = this, lfeRequestInfo = $scope.$stateParams.params;
		ctrl.layoutConfig = layoutConfig;
		ctrl.validatorConfig = validatorConfig;
		ctrl.lfeRequest ={};
		ctrl.init = function (){
			var params = {
					requestId : lfeRequestInfo.requestId
			};
			return authService.view(params).then(function(response){
				ctrl.lfeRequest = response.data || lfeRequestInfo;
				
			},angular.noop());
		};		
	}	
})(angular);